Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.4 Support #175

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

PHP 8.4 Support #175

wants to merge 14 commits into from

Conversation

oojacoboo
Copy link
Contributor

@oojacoboo oojacoboo commented Dec 8, 2024

This PR includes some updates for deprecations, PHPUnit and resolved Psalm errors, as some typing and hinting has changed in PHP 8.4.

Psalm 8.4 syntax support is only supported on dev-master. I don't see any issues here as this is only a dev dependency.

Unfortunately, at the moment, there is a newly introduced bug in PHP that's resulting in specific DataProvider tests failing. That should be resolved in the next minor release. See php/php-src#16870 for more details. After this is resolved, tests should be passing.

@oojacoboo
Copy link
Contributor Author

oojacoboo commented Jan 24, 2025

@paragonie-security please have a look at the failing test. I'm not certain on that one. Everything else should be good now. PHP rolled back the gmp_pow overflow issue in the latest releases that were just published.

@paragonie-security
Copy link
Contributor

paragonie-security commented Jan 24, 2025

Looks weird to me. I added a test to make sure if it happens again, we can see what's happening.

If you'd like, pull in https://github.com/paragonie/paseto/tree/key-length-check (temporary branch) and it should throw whenever this condition comes up

@rcerljenko
Copy link

@paragonie-security could this be merged maybe?

throw new PasetoException('Invalid PEM format', ExceptionCode::UNSPECIFIED_CRYPTOGRAPHIC_ERROR);
}

$tokenizedKey = strtok($formattedKey, "\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants